Refactoring event states
This commit is contained in:
parent
a95a03c7e5
commit
e5b588df81
12 changed files with 148 additions and 87 deletions
5
db/migrate/20140605125153_update_event_states.rb
Normal file
5
db/migrate/20140605125153_update_event_states.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class UpdateEventStates < ActiveRecord::Migration
|
||||
def change
|
||||
execute "UPDATE events SET state='new' WHERE state = 'review';"
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140604142949) do
|
||||
ActiveRecord::Schema.define(version: 20140605125153) do
|
||||
|
||||
create_table "answers", force: true do |t|
|
||||
t.string "title"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue