First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
24
db/migrate/20121223115106_create_people_table.rb
Normal file
24
db/migrate/20121223115106_create_people_table.rb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
class CreatePeopleTable < ActiveRecord::Migration
|
||||
def up
|
||||
create_table :people do |t|
|
||||
t.string :guid, :null => false
|
||||
t.string :first_name, :default => ""
|
||||
t.string :last_name, :default => ""
|
||||
t.string :public_name, :default => ""
|
||||
t.string :company, :default => ""
|
||||
t.string :email, :null => false
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue