Added authlogic and user schema
This commit is contained in:
parent
a9b7e50209
commit
3b056a2db8
6 changed files with 46 additions and 1 deletions
11
db/migrate/20150503133405_create_users.rb
Normal file
11
db/migrate/20150503133405_create_users.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class CreateUsers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.text :email
|
||||
t.text :realname
|
||||
t.text :password
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150503130412) do
|
||||
ActiveRecord::Schema.define(version: 20150503133405) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -65,6 +65,9 @@ ActiveRecord::Schema.define(version: 20150503130412) do
|
|||
add_index "screenshots", ["id", "uploaderhash"], name: "id_uploaderhash", using: :btree
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.text "email"
|
||||
t.text "realname"
|
||||
t.text "password"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue