Sha256: 133673b463c95cca5d0a5c8397d1b3aa3e479590c437858ff8f7857e2a278e00

Contents?: true

Size: 896 Bytes

Versions: 5

Compression:

Stored size: 896 Bytes

Contents

# This migration comes from advert_selector (originally 20120925122858)
class CreateAdvertSelectorBanners < ActiveRecord::Migration
  def change
    create_table :advert_selector_banners do |t|
      t.string :name, :null => false
      t.datetime :start_time
      t.datetime :end_time
      t.integer :priority, :null => false, :default => 0
      t.integer :target_view_count
      t.integer :running_view_count, :null => false, :default => 0
      t.integer :frequency
      t.boolean :fast_mode, :null => false, :default => false
      t.text :comment
      t.boolean :confirmed, :null => false, :default => false
      t.integer :placement_id, :null => false
      #t.boolean :in_serve_cache, :null => false, :default => false

      t.timestamps
    end

    #add_index(:advert_selector_banners, [:in_serve_cache, :priority])
    add_index(:advert_selector_banners, [:end_time])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
advert_selector-1.0.4 test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb
advert_selector-1.0.3 test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb
advert_selector-1.0.2 test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb
advert_selector-1.0.1 test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb
advert_selector-1.0.0 test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb