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-2.2.5 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.2.4 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.2.3 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.2.2 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.2.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.2.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.1.2 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.1.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.1.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.8.6 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.8.5 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.0.3 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.0.2 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.8.4 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.8.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.0.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-2.0.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.8.0 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.7.1 db/migrate/02_create_kuhsaft_bricks.rb
kuhsaft-1.7.0 db/migrate/02_create_kuhsaft_bricks.rb