today_ai_weather/db/migrate/20250118163460_create_active_admin_comments.rb
songtianlun 34c05232ee chore: clean up code style and unused fixtures
- Standardize string quotes in various files for consistency.
- Remove commented-out tests from cities and weather_arts controllers to improve readability.
- Clean up admin_users and weather_arts fixture files by commenting out unused entries instead of removing them.

These changes are aimed at enhancing code readability and maintainability, ensuring that code adheres to style guidelines without removing useful comments for future reference.
2025-01-20 18:08:55 +08:00

17 lines
416 B
Ruby

class CreateActiveAdminComments < ActiveRecord::Migration[8.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