diff options
Diffstat (limited to 'db/config.rb')
-rw-r--r-- | db/config.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/config.rb b/db/config.rb deleted file mode 100644 index 55b4106..0000000 --- a/db/config.rb +++ /dev/null @@ -1,17 +0,0 @@ -class Config < ActiveRecord::Base - self.table_name = 'config' - validates_presence_of :title - validates_presence_of :timezone - validates_presence_of :postsperpage -end - -class CreateConfigTable < ActiveRecord::Migration[6.0] - def change - create_table :config do |t| - t.string :title, null: false - t.string :subtitle - t.string :timezone, null: false - t.integer :postsperpage, null: false - end - end -end |