Sha256: 2010f3cf2cd083f3e0c241b4f1169172d6c3da26cc116b9a4e461cfe761c42ad

Contents?: true

Size: 756 Bytes

Versions: 16

Compression:

Stored size: 756 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.7 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.10 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.9 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.8 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.7 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.6 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.5 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.4 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.3 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.2 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.1 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.6.0 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.5.2 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.5.1 db/migrate/02_create_qbrick_bricks.rb
qbrick-2.5.0 db/migrate/02_create_qbrick_bricks.rb