I want to add some category for my Rails post app.
I want them as fixed value so user can choose from the drop down menu the specific category. My migration file looks like this:
class CreateCategories < ActiveRecord::Migration[5.1]
def change
create_table :categories do |t|
t.string :name
t.timestamps
end
end
end
What do I have to do to add some fixed value in my categories model?