Hello, I am fairly new to rails, and I keep having an error in my
migrations, cant mass assign protected attributes… it does not show
what
attribute is mass assigned, just shows the file that has the problem…
here is the file any help would be greatly appreciated!!
class Subjects < ActiveRecord::Migration
def self.up
create_table :subjects do |t|
t.column :name, :string
end
Subject.create :name => “Physics”
Subject.create :name => “Mathematics”
Subject.create :name => “Chemistry”
Subject.create :name => “Psychology”
Subject.create :name => “Geography”
end
def self.down
drop_table :subjects
end
end
Thanks!