diff options
Diffstat (limited to 'models/config.rb')
-rw-r--r-- | models/config.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/models/config.rb b/models/config.rb deleted file mode 100644 index 55b4106..0000000 --- a/models/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 |