Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore logs and db files in test/dummy

  • Loading branch information...
commit 7834c751d8e53dee31f2f2b3ccb3cbba9b5591bb 1 parent 7e06bea
@drogus authored
View
2  .gitignore
@@ -1,4 +1,6 @@
tmp/**/*
test/dummy/db/migrate/*.tolk.rb
+test/dummy/log/*
+test/dummy/db/*.sqlite3
Gemfile.lock
.bundle
View
13 test/dummy/db/migrate/20100912123407_create_phrases.blog.rb
@@ -1,13 +0,0 @@
-class CreatePhrases < ActiveRecord::Migration
- def self.up
- create_table :phrases do |t|
- t.text :key
-
- t.timestamps
- end
- end
-
- def self.down
- drop_table :phrases
- end
-end
View
13 test/dummy/db/migrate/20100912123408_create_locales.blog.rb
@@ -1,13 +0,0 @@
-class CreateLocales < ActiveRecord::Migration
- def self.up
- create_table :locales do |t|
- t.string :name
-
- t.timestamps
- end
- end
-
- def self.down
- drop_table :locales
- end
-end
View
15 test/dummy/db/migrate/20100912123409_create_translations.blog.rb
@@ -1,15 +0,0 @@
-class CreateTranslations < ActiveRecord::Migration
- def self.up
- create_table :translations do |t|
- t.references :phrase
- t.references :locale
- t.text :text
-
- t.timestamps
- end
- end
-
- def self.down
- drop_table :translations
- end
-end
View
14 test/dummy/db/migrate/20100912123410_create_systems.blog.rb
@@ -1,14 +0,0 @@
-class CreateSystems < ActiveRecord::Migration
- def self.up
- create_table :systems do |t|
- t.string :name
- t.text :location
-
- t.timestamps
- end
- end
-
- def self.down
- drop_table :systems
- end
-end
View
9 test/dummy/db/migrate/20100912123411_add_system_to_locale.blog.rb
@@ -1,9 +0,0 @@
-class AddSystemToLocale < ActiveRecord::Migration
- def self.up
- add_column :locales, :system_id, :integer
- end
-
- def self.down
- remove_column :locales, :system
- end
-end
View
11 test/dummy/db/migrate/20100912123412_rename_systems_to_applications.blog.rb
@@ -1,11 +0,0 @@
-class RenameSystemsToApplications < ActiveRecord::Migration
- def self.up
- rename_table :systems, :applications
- rename_column :locales, :system_id, :application_id
- end
-
- def self.down
- rename_table :applications, :systems
- rename_column :locales, :application_id, :system_id
- end
-end
View
9 test/dummy/db/migrate/20100912123413_add_application_id_to_phrases.blog.rb
@@ -1,9 +0,0 @@
-class AddApplicationIdToPhrases < ActiveRecord::Migration
- def self.up
- add_column :phrases, :application_id, :integer
- end
-
- def self.down
- remove_column :phrases, :application_id
- end
-end
View
19 test/dummy/db/migrate/20100912123414_drop_applications.blog.rb
@@ -1,19 +0,0 @@
-class DropApplications < ActiveRecord::Migration
- def self.up
- drop_table :applications
- remove_column :locales, :application_id
- remove_column :phrases, :application_id
- end
-
- def self.down
- create_table :applications do |t|
- t.string :name
- t.text :location
-
- t.timestamps
- end
-
- add_column :locales, :application_id, :integer
- add_column :phrases, :application_id, :integer
- end
-end
View
11 test/dummy/db/migrate/20100912123415_add_updated_stuff.blog.rb
@@ -1,11 +0,0 @@
-class AddUpdatedStuff < ActiveRecord::Migration
- def self.up
- add_column :translations, :primary_updated, :boolean, :default => false
- add_column :translations, :previous_text, :text
- end
-
- def self.down
- remove_column :translations, :previous_text
- remove_column :translations, :primary_updated
- end
-end
View
13 test/dummy/db/migrate/20100912123416_rename_tables.blog.rb
@@ -1,13 +0,0 @@
-class RenameTables < ActiveRecord::Migration
- def self.up
- rename_table :locales, :tolk_locales
- rename_table :phrases, :tolk_phrases
- rename_table :translations, :tolk_translations
- end
-
- def self.down
- rename_table :tolk_locales, :locales
- rename_table :tolk_phrases, :phrases
- rename_table :tolk_translations, :translations
- end
-end
View
11 test/dummy/db/migrate/20100912123417_add_missing_indices.blog.rb
@@ -1,11 +0,0 @@
-class AddMissingIndices < ActiveRecord::Migration
- def self.up
- add_index :tolk_locales, :name, :unique => true
- add_index :tolk_translations, [:phrase_id, :locale_id], :unique => true
- end
-
- def self.down
- remove_index :tolk_translations, :column => [:phrase_id, :locale_id]
- remove_index :tolk_locales, :column => :name
- end
-end
View
BIN  test/dummy/db/test.sqlite3
Binary file not shown
View
56,357 test/dummy/log/test.log
0 additions, 56,357 deletions not shown
View
5 test/test_helper.rb
@@ -5,6 +5,7 @@
require "rails/test_help"
ActiveSupport::TestCase.fixture_path = Rails.root.to_s + "/../fixtures"
+ActiveSupport::TestCase.use_transactional_fixtures = true
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
@@ -20,8 +21,8 @@
# Run any available migrations
# A bit of hacks, find a nicer way
FileUtils.rm(Dir[File.expand_path("../dummy/db/test.sqlite3", __FILE__)])
-FileUtils.rm(Dir[File.expand_path("../dummy/db/migrate/*.blog.rb", __FILE__)])
-ActiveRecord::Migration.copy File.expand_path("../dummy/db/migrate/", __FILE__), { :blog => File.expand_path("../../db/migrate/", __FILE__) }
+FileUtils.rm(Dir[File.expand_path("../dummy/db/migrate/*.tolk.rb", __FILE__)])
+ActiveRecord::Migration.copy File.expand_path("../dummy/db/migrate/", __FILE__), { :tolk => File.expand_path("../../db/migrate/", __FILE__) }
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
# Load support files
Please sign in to comment.
Something went wrong with that request. Please try again.