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