send page start
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Init < ActiveRecord::Migration
|
||||
def up
|
||||
def change
|
||||
create_table :people do |t|
|
||||
t.string :first_name
|
||||
t.string :last_name
|
||||
@@ -21,5 +21,14 @@ class Init < ActiveRecord::Migration
|
||||
|
||||
add_index :people, :phone
|
||||
add_index :parenthoods, [:person_id, :child_id], name: 'parentship'
|
||||
|
||||
create_table :pages do |t|
|
||||
t.integer :user_id
|
||||
t.integer :person_id
|
||||
t.string :to
|
||||
t.string :message
|
||||
t.string :status
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -1,12 +0,0 @@
|
||||
class CreatePages < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :pages do |t|
|
||||
t.integer :user_id
|
||||
t.integer :person_id
|
||||
t.string :phone
|
||||
t.string :message
|
||||
t.string :status
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150913220116) do
|
||||
ActiveRecord::Schema.define(version: 20150904033833) do
|
||||
|
||||
create_table "children", force: :cascade do |t|
|
||||
t.string "first_name", limit: 255
|
||||
@@ -21,7 +21,6 @@ ActiveRecord::Schema.define(version: 20150913220116) do
|
||||
create_table "pages", force: :cascade do |t|
|
||||
t.integer "user_id", limit: 4
|
||||
t.integer "person_id", limit: 4
|
||||
t.string "phone", limit: 255
|
||||
t.string "to", limit: 255
|
||||
t.string "message", limit: 255
|
||||
t.string "status", limit: 255
|
||||
|
Reference in New Issue
Block a user