Sha256: ecb5975f2ac5edc93076ed2296e03379d5b0b3c94973df2856d583798de64fda

Contents?: true

Size: 627 Bytes

Versions: 14

Compression:

Stored size: 627 Bytes

Contents

class AddDetailedFieldsToVenue < ActiveRecord::Migration
  def self.up
    add_column :venues, :street_address, :string
    add_column :venues, :locality, :string
    add_column :venues, :region, :string
    add_column :venues, :postal_code, :string
    add_column :venues, :country, :string

    add_column :venues, :latitude, :float
    add_column :venues, :longitude, :float

    add_column :venues, :email, :string
    add_column :venues, :telephone, :string
  end

  def self.down
    remove_columns :venues, :street_address, :locality, :region, :postal_code, :country, :latitude, :longitude, :email, :telephone
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
calagator-1.1.0 db/migrate/004_add_detailed_fields_to_venue.rb
calagator-1.0.0 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.9 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.8 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.7 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.6 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.5 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.3 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.2 db/migrate/004_add_detailed_fields_to_venue.rb
grokus-1.0.0.1 db/migrate/004_add_detailed_fields_to_venue.rb
calagator-1.0.0.rc3 db/migrate/004_add_detailed_fields_to_venue.rb
calagator-1.0.0.rc2 db/migrate/004_add_detailed_fields_to_venue.rb
calagator-1.0.0.rc1 db/migrate/004_add_detailed_fields_to_venue.rb
calagator-0.0.1.pre1 db/migrate/004_add_detailed_fields_to_venue.rb