mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Create SettingEntry model
This commit is contained in:
parent
21d246cc3e
commit
a0c21d005e
3 changed files with 136 additions and 1 deletions
16
db/migrate/20200811074839_create_setting_entries.rb
Normal file
16
db/migrate/20200811074839_create_setting_entries.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
class CreateSettingEntries < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :setting_entries do |t|
|
||||
t.string :code, null: false, index: { unique: true }
|
||||
t.string :value, null: false
|
||||
t.string :group, null: false
|
||||
t.string :format, null: false
|
||||
|
||||
# Versioning related
|
||||
t.string :creator_str
|
||||
t.string :updator_str
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue