ftp-manager/db/migrate/20160828022337_create_accounts.rb

15 lines
308 B
Ruby
Raw Normal View History

2016-09-18 09:41:51 -05:00
# frozen_string_literal: true
2016-08-27 21:40:21 -05:00
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