Adding user_certifications relation, and paperclip gem
This commit is contained in:
5
db/migrate/20130125101623_add_instructor_to_users.rb
Normal file
5
db/migrate/20130125101623_add_instructor_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddInstructorToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :instructor, :boolean
|
||||
end
|
||||
end
|
||||
10
db/migrate/20130125102002_create_user_certifications.rb
Normal file
10
db/migrate/20130125102002_create_user_certifications.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateUserCertifications < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :user_certifications do |t|
|
||||
t.integer :user_id
|
||||
t.integer :certification_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user