Class: CreateCards
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateCards
- Defined in:
- lib/webpay/scaffold/templates/migrate/create_cards.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/webpay/scaffold/templates/migrate/create_cards.rb', line 2 def change create_table :cards do |t| t.references :user, index: true t.string :object t.integer :exp_year t.integer :exp_month t.string :fingerprint t.string :name t.string :country t.string :kind t.string :cvc_check t.string :last_four_number t. end end |