Class: CreateBinNumbersTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateBinNumbersTable
- Defined in:
- lib/generators/bin_checker/migration/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/generators/bin_checker/migration/templates/migration.rb', line 14 def self.down drop_table :bin_checker_bin_numbers end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/bin_checker/migration/templates/migration.rb', line 2 def self.up create_table :bin_checker_bin_numbers do |t| t.string :bin_number, index: true t.string :bank_number t.string :bank_name t.string :card_type t.string :sub_type t.boolean :virtual, null: false, default: false t.boolean :prepaid, null: false, default: false end end |