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

14 lines
375 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|
2016-09-28 22:12:55 -05:00
t.string :username, null: false
t.string :password, null: false
t.string :home_folder, null: false
t.string :contact_email, null: false
2016-08-27 21:40:21 -05:00
t.timestamps
end
add_index :accounts, :username, unique: true
end
end