1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/db/migrate/20101006095323_create_categories.rb
2021-07-16 12:58:13 -05:00

15 lines
239 B
Ruby

class CreateCategories < ActiveRecord::Migration[5.1]
def self.up
create_table :categories do |t|
t.string :name
t.text :description
t.timestamps
end
end
def self.down
drop_table :categories
end
end