Sha256: 7622e337f9ff91adf3a52dd6b3cfd8a695d5a8cd6227b56781345b83d27e3ad7

Contents?: true

Size: 364 Bytes

Versions: 10

Compression:

Stored size: 364 Bytes

Contents

class CreateMetroAreas < ActiveRecord::Migration
  def self.up
    create_table :metro_areas do |t|
      t.column :name, :string
      t.column :state_id, :integer
      t.column :country_id, :integer
    end
    add_column "users", "metro_area_id", :integer
  end

  def self.down
    drop_table :metro_areas
    remove_column "users", "metro_area_id"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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