Class: CreateImages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateImages
- Defined in:
- lib/ecrire/db/migrate/20140115215122_create_images.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/ecrire/db/migrate/20140115215122_create_images.rb', line 2 def change create_table :images do |t| t.string :url t.string :key t.references :post t. null: false end end |