class CreateQbrickBricks < ActiveRecord::Migration def change create_table :qbrick_bricks do |t| t.integer :position t.references :brick_list, :polymorphic => true # all bricks t.string :type # all bricks t.string :locale # all bricks t.text :text # TextBrick t.text :read_more_text # TextBrick t.string :caption # LinkBrick, ImageBrick, AccordionItemBrick, AnchorBrick t.text :href # LinkBrick, ImageBrick, VideoBrick t.string :link_style # LinkBrick t.integer :partitioning # TwoColumnBrick t.string :image # ImageBrick t.string :image_size # ImageBrick t.text :embed_src # VideoBrick t.string :video # VideoBrick t.timestamps null: true end end end