Sha256: bede26bb15fe8d5d5eecb5366323eeb0821b44e6b2ca0e4b775e5026fa284330

Contents?: true

Size: 451 Bytes

Versions: 9

Compression:

Stored size: 451 Bytes

Contents

class CreateAdvertSelectorHelperItems < ActiveRecord::Migration
  def change
    create_table :advert_selector_helper_items do |t|
      t.integer :banner_id

      #t.references :master, :polymorphic => true

      t.integer :position
      t.string :name
      t.boolean :content_for
      t.text :content

      t.timestamps
    end

    add_index(:advert_selector_helper_items, [:banner_id, :position], :name => 'index_banner_position')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
advert_selector-3.0.1 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-3.0.0 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-2.0.1 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-2.0.0 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-1.0.4 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-1.0.3 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-1.0.2 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-1.0.1 db/migrate/20120926132649_create_advert_selector_helper_items.rb
advert_selector-1.0.0 db/migrate/20120926132649_create_advert_selector_helper_items.rb