docbrown/db/migrate/20200731041554_create_profile_fields.rb
Michael Kohl e9bbcbb789
[deploy] Add ProfileField model (#9580)
* Add ProfileField model

* Fix schema.rb

* Fix schema.rb again

* Fix validation
2020-08-03 16:16:50 -04:00

14 lines
380 B
Ruby

class CreateProfileFields < ActiveRecord::Migration[6.0]
def change
create_table :profile_fields do |t|
enable_extension("citext")
t.citext :label, null: false, index: { unique: true }
t.integer :input_type, null: false, default: 0
t.string :placeholder_text
t.boolean :active, null: false, default: true
t.timestamps
end
end
end