feat(migrate): add AddIndexOnPostsUserId, down and AddSlugToPosts
This commit is contained in:
1 parent
d9f5a673e3
commit
66ed34b69d
9 files changed
+130
No files matched your search
@@ -0,0 +1,9 @@
|
||||
class AddFeaturedToPosts < Prism::Orm::Migration
|
||||
def up
|
||||
add_column :posts, :featured, default: false
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :posts, :featured
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user