Sha256: 5d8a0f45a81f34f1ef691f0a3639a32317533fa47cee949591a2d6ca419ff146

Contents?: true

Size: 747 Bytes

Versions: 60

Compression:

Stored size: 747 Bytes

Contents

class CreateKuhsaftBricks < ActiveRecord::Migration

  def change
    create_table :kuhsaft_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
    end
  end

end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
kuhsaft-1.6.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.5.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.4.3 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.4.2 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.4.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.4.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.3.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.15 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.14 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.13 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.12 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.11 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.10 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.9 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.8 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.7 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.6 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.5 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.4 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.2.3 db/migrate/02_create_kuhsaft_bricks.rb