Skip to content

Instantly share code, notes, and snippets.

@ehogberg
Created December 12, 2013 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehogberg/7935336 to your computer and use it in GitHub Desktop.
Save ehogberg/7935336 to your computer and use it in GitHub Desktop.
Location migration def.
class CreateLocations < ActiveRecord::Migration
def change
create_table :locations do |t|
t.references :company, index: true
t.string :name
t.text :legacy_url
t.string :address1
t.string :address2
t.string :city
t.string :region
t.string :country
t.string :postcode
t.string :telephone
t.string :manager_name
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment