Class: Settings
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- Settings
- Defined in:
- lib/tkellem/migrations/003_settings.rb
Class Method Summary collapse
Class Method Details
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/tkellem/migrations/003_settings.rb', line 2 def self.up create_table 'settings' do |t| t.string :name, :null => false t.string :value, :null => false t.boolean :unchanged, :null => false, :default => true end Tkellem::Setting.make_new('user_registration', 'closed') Tkellem::Setting.make_new('recaptcha_api_key', '') Tkellem::Setting.make_new('allow_user_networks', 'false') end |