diff --git a/db/migrate/20130515125823_change_attachment_default.rb b/db/migrate/20130515125823_change_attachment_default.rb new file mode 100644 index 00000000..562f76b4 --- /dev/null +++ b/db/migrate/20130515125823_change_attachment_default.rb @@ -0,0 +1,8 @@ +class ChangeAttachmentDefault < ActiveRecord::Migration + def up + change_column_default(:event_attachments, :public, :default => true) + end + def down + change_column_default(:event_attachments, :public, :default => nil) + end +end diff --git a/db/migrate/20130515131210_drop_additional_speakers.rb b/db/migrate/20130515131210_drop_additional_speakers.rb new file mode 100644 index 00000000..a6332cd3 --- /dev/null +++ b/db/migrate/20130515131210_drop_additional_speakers.rb @@ -0,0 +1,9 @@ +class DropAdditionalSpeakers < ActiveRecord::Migration + def up + remove_column :registrations, :additional_speakers + end + + def down + add_column :registrations, :additional_speakers + end +end diff --git a/db/migrate/20130515131420_change_venue_types.rb b/db/migrate/20130515131420_change_venue_types.rb new file mode 100644 index 00000000..f588fe55 --- /dev/null +++ b/db/migrate/20130515131420_change_venue_types.rb @@ -0,0 +1,11 @@ +class ChangeVenueTypes < ActiveRecord::Migration + def up + change_column :venues, :name, :text + change_column :venues, :address, :text + end + + def down + change_column :venues, :name, :string + change_column :venues, :address, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 413929c1..ef3cdbd6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130216122417) do +ActiveRecord::Schema.define(:version => 20130515131420) do create_table "call_for_papers", :force => true do |t| t.date "start_date", :null => false @@ -91,14 +91,14 @@ ActiveRecord::Schema.define(:version => 20130216122417) do create_table "event_attachments", :force => true do |t| t.integer "event_id" - t.string "title", :null => false + t.string "title", :null => false t.string "attachment_file_name" t.string "attachment_content_type" t.integer "attachment_file_size" t.datetime "attachment_updated_at" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - t.boolean "public" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.boolean "public", :default => false end create_table "event_people", :force => true do |t| @@ -171,7 +171,6 @@ ActiveRecord::Schema.define(:version => 20130216122417) do t.boolean "using_affiliated_lodging", :default => false t.datetime "arrival" t.datetime "departure" - t.text "additional_speakers" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "dietary_choice_id" @@ -262,14 +261,14 @@ ActiveRecord::Schema.define(:version => 20130216122417) do create_table "venues", :force => true do |t| t.string "guid" - t.string "name" - t.string "address" + t.text "name", :limit => 255 + t.text "address", :limit => 255 t.string "website" t.text "description" t.string "offline_map_url" t.string "offline_map_bounds" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false end create_table "versions", :force => true do |t|