Class: CreateBillsTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateBillsTable
- Defined in:
- lib/generators/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/templates/migration.rb', line 2 def change create_table :bills do |t| t.integer :buyer_id t.integer :article_id t.integer :amount t.string :state t.string :error_code t.string :bill_reference t. end end |