blog_eft_app/db/migrate/0077_create_image_contents.rb
2013-09-09 16:15:13 +02:00

26 lines
459 B
Ruby

# -*- encoding : utf-8 -*-
class CreateImageContents < ActiveRecord::Migration
def self.up
create_table :image_contents do |t|
t.references :image_file
t.integer :width
t.integer :height
t.string :alignement
t.boolean :expandable
t.string :style
t.string :alt
t.integer :cible_id
t.string :cible_type
t.boolean :with_cible
t.boolean :popup
t.timestamps
end
end
def self.down
drop_table :image_contents
end
end