20161111073417_create_accounts.rb 532 B

1234567891011121314151617181920212223242526
  1. class CreateAccounts < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :accounts do |t|
  4. t.bigint :ipaddr, :null => false
  5. t.integer :pulled, :null => false
  6. t.boolean :isused, :null => false
  7. t.string :login, :null => false
  8. t.string :password
  9. t.integer :issue
  10. t.string :comment
  11. t.string :owner, :null => false
  12. t.timestamps
  13. t.index :ipaddr
  14. t.index :login
  15. t.index :password
  16. t.index :issue
  17. t.index :pulled
  18. t.index :isused
  19. t.index :created_at
  20. t.index :updated_at
  21. end
  22. end
  23. end