Unnecessary migration and invalid syntax in migraton

This commit is contained in:
Gopesh Tulsyan 2014-03-17 17:41:31 +05:30
parent ad544a117f
commit 521d2dc72f
5 changed files with 11 additions and 22 deletions

View file

@ -1,8 +1,8 @@
class ChangeAttachmentDefault < ActiveRecord::Migration
def up
change_column_default(:event_attachments, :public, :default => true)
change_column_default(:event_attachments, :public, true)
end
def down
change_column_default(:event_attachments, :public, :default => nil)
change_column_default(:event_attachments, :public, true)
end
end

View file

@ -1,9 +0,0 @@
class DropAdditionalSpeakers < ActiveRecord::Migration
def up
remove_column :registrations, :additional_speakers
end
def down
add_column :registrations, :additional_speakers
end
end

View file

@ -118,14 +118,14 @@ ActiveRecord::Schema.define(:version => 20140305102505) 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.boolean "public", :default => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "public", :default => true
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "event_people", :force => true do |t|
@ -347,14 +347,14 @@ ActiveRecord::Schema.define(:version => 20140305102505) do
create_table "venues", :force => true do |t|
t.string "guid"
t.text "name", :limit => 255
t.text "address", :limit => 255
t.text "name"
t.text "address"
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|