init
This commit is contained in:
16
db/migrate/20220512124755_create_active_admin_comments.rb
Normal file
16
db/migrate/20220512124755_create_active_admin_comments.rb
Normal file
@ -0,0 +1,16 @@
|
||||
class CreateActiveAdminComments < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
create_table :active_admin_comments do |t|
|
||||
t.string :namespace
|
||||
t.text :body
|
||||
t.references :resource, polymorphic: true
|
||||
t.references :author, polymorphic: true
|
||||
t.timestamps
|
||||
end
|
||||
add_index :active_admin_comments, [:namespace]
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :active_admin_comments
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user