Sha256: 57b5e447498a6de5f929c0b1b0eec1dc0f749056e4db7ee0db680a72826ea9ab

Contents?: true

Size: 483 Bytes

Versions: 10

Compression:

Stored size: 483 Bytes

Contents

class CreateEventsTable < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.column :name, :string
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :user_id, :integer
      t.column :start_time, :datetime
      t.column :end_time, :datetime
      t.column :description, :text
      t.column :metro_area_id, :integer
      t.column :location, :string
    end
  end

  def self.down
    drop_table :events
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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