diff options
author | francis <francis> | 2007-08-01 16:41:32 +0000 |
---|---|---|
committer | francis <francis> | 2007-08-01 16:41:32 +0000 |
commit | 9bd8bc16d6dcc78b2dade214f28f7251a1a11f9b (patch) | |
tree | be3eede16fcb68730a0c475303435267abc833e2 /db/migrate/001_create_users.rb | |
parent | f1689d3521d1fdee901d375d67e7168eaa3ca38a (diff) |
User table, and some dodgy authentication code.
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 |