Added paper_trail, also starting work on the scheduler
This commit is contained in:
parent
90b30db9e8
commit
f86232bedf
35 changed files with 523 additions and 32137 deletions
|
|
@ -0,0 +1,6 @@
|
|||
class AddRegistrationDatesToConferencesTable < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :registration_start_date, :date
|
||||
add_column :conferences, :registration_end_date, :date
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
class RemoveCfpAndRegBooleansFromConferences < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :conferences, :cfp_open
|
||||
remove_column :conferences, :registration_open
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :conferences, :cfp_open, :default => false
|
||||
add_column :registration_open, :default => false
|
||||
end
|
||||
end
|
||||
19
db/migrate/20130107114930_create_versions.rb
Normal file
19
db/migrate/20130107114930_create_versions.rb
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class CreateVersions < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :versions do |t|
|
||||
t.string :item_type, :null => false
|
||||
t.integer :item_id, :null => false
|
||||
t.string :event, :null => false
|
||||
t.string :whodunnit
|
||||
t.text :object
|
||||
t.text :object_changes
|
||||
t.datetime :created_at
|
||||
end
|
||||
add_index :versions, [:item_type, :item_id]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :versions, [:item_type, :item_id]
|
||||
drop_table :versions
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue