You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

017_create_settings.rb 289B

123456789101112
  1. class CreateSettings < ActiveRecord::Migration[4.2]
  2. def self.up
  3. create_table :settings, :force => true do |t|
  4. t.column "name", :string, :limit => 30, :default => "", :null => false
  5. t.column "value", :text
  6. end
  7. end
  8. def self.down
  9. drop_table :settings
  10. end
  11. end