chronicle_bot/db/migrate/0100_create_custom_commands.rb

15 lines
287 B
Ruby
Raw Normal View History

class CreateCustomCommands < ActiveRecord::Migration[6.1]
def up
create_table :custom_commands do |table|
table.string :roomid
table.string :command
table.string :response
table.timestamps
end
end
def down
drop_table :custom_commands
end
end