Sha256: 3974bace59cca982511b1f4aa4a1f0eed5e32b05e9cd24cdeea91c32ecdfb399

Contents?: true

Size: 541 Bytes

Versions: 10

Compression:

Stored size: 541 Bytes

Contents

class AddingAds < ActiveRecord::Migration
  def self.up
    create_table :ads do |t|
      t.column :name, :string
      t.column :html, :text
      t.column :frequency, :integer
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :start_date, :datetime
      t.column :end_date, :datetime
      t.column :location, :string
      t.column :published, :boolean, :default => false
      t.column :time_constrained, :boolean, :default => false
    end
  end

  def self.down
    drop_table :ads
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/046_adding_ads.rb
community_engine-3.0.0 db/migrate/046_adding_ads.rb
community_engine-2.3.2 db/migrate/046_adding_ads.rb
community_engine-2.3.1 db/migrate/046_adding_ads.rb
community_engine-2.3.0 db/migrate/046_adding_ads.rb
community_engine-2.1.0 db/migrate/046_adding_ads.rb
community_engine-2.0.0 db/migrate/046_adding_ads.rb
community_engine-2.0.0.beta3 db/migrate/046_adding_ads.rb
community_engine-2.0.0.beta2 db/migrate/046_adding_ads.rb
community_engine-2.0.0.beta1 db/migrate/046_adding_ads.rb