diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 13:03:45 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 13:03:45 -0700 |
| commit | d363dc6298e8210fb3a5eddea8a6916a54005290 (patch) | |
| tree | d722fbe64f53cfa4f05312e7444f007bb30c15f2 /db/migrate | |
| parent | d62b19c584862b3c54559348475a93fffd985e7f (diff) | |
switch from has_one to belongs_to relationship.
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20140222194718_add_location_id_to_licenses.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20140222194718_add_location_id_to_licenses.rb b/db/migrate/20140222194718_add_location_id_to_licenses.rb new file mode 100644 index 0000000..067e7e4 --- /dev/null +++ b/db/migrate/20140222194718_add_location_id_to_licenses.rb @@ -0,0 +1,6 @@ +class AddLocationIdToLicenses < ActiveRecord::Migration + def change + add_column :licenses, :location_id, :uuid + remove_column :locations, :license_id + end +end |
