send page start

This commit is contained in:
2015-09-20 22:30:44 -05:00
parent 692446b97b
commit c425f63ee9
13 changed files with 117 additions and 41 deletions

View File

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

View File

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

View File

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