Unnecessary migration and invalid syntax in migraton
This commit is contained in:
parent
ad544a117f
commit
521d2dc72f
5 changed files with 11 additions and 22 deletions
2
Gemfile
2
Gemfile
|
|
@ -20,7 +20,7 @@ end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'pry'
|
gem 'pry'
|
||||||
gem 'sqlite3'
|
gem 'mysql2'
|
||||||
gem 'thin'
|
gem 'thin'
|
||||||
gem 'rspec-rails', '2.11.0'
|
gem 'rspec-rails', '2.11.0'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,6 @@ GEM
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
sqlite3 (1.3.8)
|
|
||||||
therubyracer (0.12.0)
|
therubyracer (0.12.0)
|
||||||
libv8 (~> 3.16.14.0)
|
libv8 (~> 3.16.14.0)
|
||||||
ref
|
ref
|
||||||
|
|
@ -246,7 +245,6 @@ DEPENDENCIES
|
||||||
rails (= 3.2.15)
|
rails (= 3.2.15)
|
||||||
rspec-rails (= 2.11.0)
|
rspec-rails (= 2.11.0)
|
||||||
sass-rails (~> 3.2.3)
|
sass-rails (~> 3.2.3)
|
||||||
sqlite3
|
|
||||||
therubyracer
|
therubyracer
|
||||||
thin
|
thin
|
||||||
transitions
|
transitions
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
class ChangeAttachmentDefault < ActiveRecord::Migration
|
class ChangeAttachmentDefault < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
change_column_default(:event_attachments, :public, :default => true)
|
change_column_default(:event_attachments, :public, true)
|
||||||
end
|
end
|
||||||
def down
|
def down
|
||||||
change_column_default(:event_attachments, :public, :default => nil)
|
change_column_default(:event_attachments, :public, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
16
db/schema.rb
16
db/schema.rb
|
|
@ -118,14 +118,14 @@ ActiveRecord::Schema.define(:version => 20140305102505) do
|
||||||
|
|
||||||
create_table "event_attachments", :force => true do |t|
|
create_table "event_attachments", :force => true do |t|
|
||||||
t.integer "event_id"
|
t.integer "event_id"
|
||||||
t.string "title", :null => false
|
t.string "title", :null => false
|
||||||
t.string "attachment_file_name"
|
t.string "attachment_file_name"
|
||||||
t.string "attachment_content_type"
|
t.string "attachment_content_type"
|
||||||
t.integer "attachment_file_size"
|
t.integer "attachment_file_size"
|
||||||
t.datetime "attachment_updated_at"
|
t.datetime "attachment_updated_at"
|
||||||
t.boolean "public", :default => false
|
t.boolean "public", :default => true
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "event_people", :force => true do |t|
|
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|
|
create_table "venues", :force => true do |t|
|
||||||
t.string "guid"
|
t.string "guid"
|
||||||
t.text "name", :limit => 255
|
t.text "name"
|
||||||
t.text "address", :limit => 255
|
t.text "address"
|
||||||
t.string "website"
|
t.string "website"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.string "offline_map_url"
|
t.string "offline_map_url"
|
||||||
t.string "offline_map_bounds"
|
t.string "offline_map_bounds"
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "versions", :force => true do |t|
|
create_table "versions", :force => true do |t|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue