update
This commit is contained in:
14
db/migrate/20160920111650_create_nodes.rb
Normal file
14
db/migrate/20160920111650_create_nodes.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateNodes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :nodes do |t|
|
||||
|
||||
t.string :host_name
|
||||
t.string :host_ip
|
||||
t.integer :host_port
|
||||
t.string :user_name
|
||||
t.string :user_password
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
12
db/schema.rb
12
db/schema.rb
@@ -11,7 +11,17 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160819061449) do
|
||||
ActiveRecord::Schema.define(version: 20160920111650) do
|
||||
|
||||
create_table "nodes", force: :cascade do |t|
|
||||
t.string "host_name"
|
||||
t.string "host_ip"
|
||||
t.integer "host_port"
|
||||
t.string "user_name"
|
||||
t.string "user_password"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email", default: "", null: false
|
||||
|
||||
Reference in New Issue
Block a user