Gab Social. All are welcome.
This commit is contained in:
15
db/migrate/20190603162444_create_groups.rb
Normal file
15
db/migrate/20190603162444_create_groups.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateGroups < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :groups do |t|
|
||||
t.belongs_to :account
|
||||
t.string :title, null: false
|
||||
t.string :description, null: false
|
||||
t.attachment :cover_image, null: true
|
||||
t.boolean :is_nsfw, null: false, default: false
|
||||
t.boolean :is_featured, null: false, default: false
|
||||
t.boolean :is_archived, null: false, default: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user