1234567891011121314151617181920212223242526 |
- class CreateAccounts < ActiveRecord::Migration[5.0]
- def change
- create_table :accounts do |t|
- t.bigint :ipaddr, :null => false
- t.integer :pulled, :null => false
- t.boolean :isused, :null => false
- t.string :login, :null => false
- t.string :password
- t.integer :issue
- t.string :comment
- t.string :owner, :null => false
- t.timestamps
- t.index :ipaddr
- t.index :login
- t.index :password
- t.index :issue
- t.index :pulled
- t.index :isused
- t.index :created_at
- t.index :updated_at
- end
- end
- end
|