Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AddImeagableToPics < ActiveRecord::Migration
- def self.up
- add_column :pictures, :photo_file_name, :string
- add_column :pictures, :photo_content_type, :string
- add_column :pictures, :photo_file_size, :integer
- add_column :pictures, :polymorphic => true, :imageable
- end
- def self.down
- remove_column :pictures, :photo_file_name, :string
- remove_column :pictures, :photo_content_type, :string
- remove_column :pictures, :photo_file_size, :integer
- remove_column :pictures, :polymorphic => true, :imageable
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement