Adding user_certifications relation, and paperclip gem
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddInstructorToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :instructor, :boolean
|
||||
end
|
||||
end
|
||||
@@ -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