scaffold accounts
This commit is contained in:
13
db/migrate/20160828022337_create_accounts.rb
Normal file
13
db/migrate/20160828022337_create_accounts.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class CreateAccounts < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :accounts do |t|
|
||||
t.string :username
|
||||
t.string :password
|
||||
t.string :home
|
||||
t.string :site
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :accounts, :username, unique: true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user