16 lines
278 B
Ruby
16 lines
278 B
Ruby
![]() |
class CreateUserProfilesTable < ActiveRecord::Migration
|
||
|
tag :predeploy
|
||
|
|
||
|
def self.up
|
||
|
create_table :user_profiles do |t|
|
||
|
t.text :bio
|
||
|
t.string :title
|
||
|
t.references :user, :limit => 8
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :user_profiles
|
||
|
end
|
||
|
end
|