chronicle_bot/db/migrate/0001_create_general.rb
Bill Niblock c10b847e81 Add Yard, and begin some documentation
Use Yard to generate documentation. Included in the `.yardopts` file is
configuration to also publish the markdown files in the `wiki/`
directory.

wiki/
- addons.md: Information on writing new addons.
- database.md: Information on using the database and migrations

db/migrate/*: Rename in accordance with documentation

Rakefile: Add the Yard Rake tasks
2021-03-07 16:57:27 -05:00

15 lines
306 B
Ruby

class CreateGeneral < ActiveRecord::Migration[6.1]
def up
create_table :general do |table|
table.string :roomid
table.string :protocol
table.string :prefix_char
table.integer :permission_level
table.timestamps
end
end
def down
drop_table :general
end
end