This commit is contained in:
bee0005
2016-09-20 12:14:13 +00:00
parent 37538b5112
commit e9d72c6fc5
9 changed files with 204 additions and 14 deletions

View 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

View File

@@ -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