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
|
Reference in New Issue
Block a user