diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 21:40:12 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 21:40:12 -0500 |
commit | 9493275dbb5c59cfe571c48a8ff76d5b1a723d6a (patch) | |
tree | 19cdf2711a3a9d1e4f2f6542d6b804716ae42c68 /db/migrate/20140307023453_create_users.rb | |
parent | 64d4bd0d7bff0bf0e1c405bfa154f22775ca724e (diff) | |
parent | 88204381fbdef9d9f80d796b695b1e7e0b8f6814 (diff) |
Merge branch 'clean'
Diffstat (limited to 'db/migrate/20140307023453_create_users.rb')
-rw-r--r-- | db/migrate/20140307023453_create_users.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140307023453_create_users.rb b/db/migrate/20140307023453_create_users.rb new file mode 100644 index 0000000..8032870 --- /dev/null +++ b/db/migrate/20140307023453_create_users.rb @@ -0,0 +1,13 @@ +class CreateUsers < ActiveRecord::Migration + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :user_name + + t.timestamps + end + add_index :users, :email, unique: true + add_index :users, :user_name, unique: true + end +end |