]> git.openstreetmap.org Git - rails.git/commit
Set default formats in the database now that rails handles enums
authorTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 15:34:03 +0000 (15:34 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 11 Jan 2015 12:54:16 +0000 (12:54 +0000)
commit8fa9763281c5bcd4e9a88cfa0597e4e9a86963e7
treed743daa06227892c1e970d5403c7f0da5d605c76
parenta9a9ae2cbb2facd6910338ef3d3c50f4ebee11da
Set default formats in the database now that rails handles enums

Because rails now reads the defaults from the database correctly it
no longer works to set them conditionally in after_initialise as they
have already been set.
app/models/diary_comment.rb
app/models/diary_entry.rb
app/models/message.rb
app/models/redaction.rb
app/models/user.rb
app/models/user_block.rb
db/migrate/20150110152606_change_default_formats.rb [new file with mode: 0644]
db/structure.sql