2013-01-07 09:04:09 +01:00
|
|
|
class CreatePeopleTable < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :people do |t|
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :guid, null: false
|
2014-08-18 21:54:43 +03:00
|
|
|
t.string :first_name, default: ''
|
|
|
|
|
t.string :last_name, default: ''
|
|
|
|
|
t.string :public_name, default: ''
|
|
|
|
|
t.string :company, default: ''
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :email, null: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.boolean :email_public
|
|
|
|
|
t.string :avatar_file_name
|
|
|
|
|
t.string :avatar_content_type
|
|
|
|
|
t.integer :avatar_file_size
|
|
|
|
|
t.datetime :avatar_updated_at
|
|
|
|
|
t.text :biography
|
|
|
|
|
t.references :user
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
drop_table :people
|
|
|
|
|
end
|
|
|
|
|
end
|