diff options
Diffstat (limited to 'db/migrate/001_create_users.rb')
-rw-r--r-- | db/migrate/001_create_users.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/001_create_users.rb b/db/migrate/001_create_users.rb new file mode 100644 index 000000000..ba528c038 --- /dev/null +++ b/db/migrate/001_create_users.rb @@ -0,0 +1,15 @@ +class CreateUsers < ActiveRecord::Migration + def self.up + create_table :users do |t| + t.column :email, :string + t.column :name, :string + + t.column :hashed_password, :string + t.column :salt, :string + end + end + + def self.down + drop_table :users + end +end |