diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-21 22:57:51 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-21 22:57:51 -0700 |
| commit | 33cb4e479decb1f7e15048b8c81924fe7498aec1 (patch) | |
| tree | 0ce2c2e506e95fa2d1146e9b5505f0d718529bae /db/migrate | |
| parent | bf5c3435155c0ee9c2172bea6b6b3c5dec2c2463 (diff) | |
create users table and save applicant with the license.
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20140222054248_create_users.rb | 8 | ||||
| -rw-r--r-- | db/migrate/20140222055630_add_applicant_to_licenses.rb | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140222054248_create_users.rb b/db/migrate/20140222054248_create_users.rb new file mode 100644 index 0000000..791bf2f --- /dev/null +++ b/db/migrate/20140222054248_create_users.rb @@ -0,0 +1,8 @@ +class CreateUsers < ActiveRecord::Migration + def change + create_table :users, id: :uuid do |t| + t.uuid :company_id + t.timestamps + end + end +end diff --git a/db/migrate/20140222055630_add_applicant_to_licenses.rb b/db/migrate/20140222055630_add_applicant_to_licenses.rb new file mode 100644 index 0000000..ca96b8f --- /dev/null +++ b/db/migrate/20140222055630_add_applicant_to_licenses.rb @@ -0,0 +1,5 @@ +class AddApplicantToLicenses < ActiveRecord::Migration + def change + add_column :licenses, :user_id, :uuid + end +end |
