| Index: db/migrate/003_create_photos.rb |
| =================================================================== |
| --- db/migrate/003_create_photos.rb (revision 0) |
| +++ db/migrate/003_create_photos.rb (revision 0) |
| @@ -0,0 +1,16 @@ |
| +class CreatePhotos < ActiveRecord::Migration |
| + def self.up |
| + create_table :photos do |t| |
| + t.integer :news_item_id |
| + t.string :image |
| + t.string :description |
| + t.integer :created_by_id |
| + t.integer :updated_by_id |
| + t.timestamps |
| + end |
| + end |
| + |
| + def self.down |
| + drop_table :photos |
| + end |
| +end |