Created
December 12, 2013 20:59
-
-
Save ehogberg/7935336 to your computer and use it in GitHub Desktop.
Location migration def.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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