Class: CreateFsTables
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFsTables
- Defined in:
- lib/generators/feature_setting/install/templates/migrations/create_fs_tables.rb
Class Method Summary collapse
Class Method Details
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/feature_setting/install/templates/migrations/create_fs_tables.rb', line 2 def self.up create_table :fs_features do |t| t.string :key t.boolean :enabled, default: false t.string :klass t. null: false end create_table :fs_settings do |t| t.string :key t.string :value t.string :value_type t.string :klass t. null: false end end |