From 33725cbfe28125e0535f912cfaf2a44c99edfc31 Mon Sep 17 00:00:00 2001 From: nfoy Date: Tue, 22 Apr 2014 17:28:42 -0400 Subject: run ./generate.sh --- db/migrate/20140422212630_create_users.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/20140422212630_create_users.rb (limited to 'db/migrate/20140422212630_create_users.rb') diff --git a/db/migrate/20140422212630_create_users.rb b/db/migrate/20140422212630_create_users.rb new file mode 100644 index 0000000..8032870 --- /dev/null +++ b/db/migrate/20140422212630_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 -- cgit v1.2.3-2-g168b