- 20 9月, 2015 1 次提交
-
-
由 Ryuta Kamizono 提交于
Some test cases are testing only mysql adapter. We should test mysql2 adapter also.
-
- 11 6月, 2015 1 次提交
-
-
由 Yves Senn 提交于
-
- 04 5月, 2015 1 次提交
-
-
由 Ryuta Kamizono 提交于
-
- 04 12月, 2014 1 次提交
-
-
由 noam 提交于
When running the following migration: change_table(:table_name) { |t| t/timestamps } The following error was produced: wrong number of arguments (2 for 1) .... /connection_adapters/abstract/schema_statements.rb:851:in `remove_timestamps' This is due to `arguments` containing an empty hash as its second argument.
-
- 20 11月, 2014 1 次提交
-
-
由 Yves Senn 提交于
This makes the following changes: * warn if `:null` is not passed to `add_timestamps` * `timestamps` method docs link to `add_timestamps` docs * explain where additional options go * adjust examples to include `null: false` (to prevent deprecation warnings)
-
- 13 8月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
As per discussion, this changes the model generators to specify `null: false` for timestamp columns. A warning is now emitted if `timestamps` is called without a `null` option specified, so we can safely change the behavior when no option is specified in Rails 5.
-
- 03 4月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
-
- 27 3月, 2014 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
- 26 3月, 2014 2 次提交
-
-
由 Steve Rice 提交于
Also: - updates tests by stubbing table_exists? method - adds entry for creating indexes in CREATE TABLE to changelog
-
由 Cody Cutrer 提交于
This is important, because adding an index on a temporary table after it has been created would commit the transaction Conflicts: activerecord/CHANGELOG.md
-
- 15 3月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
Follow-Up to https://github.com/rails/rails/pull/14348 Ensure that SQLCounter.clear_log is called after each test. This is a step to prevent side effects when running tests. This will allow us to run them in random order.
-
- 03 5月, 2013 1 次提交
-
-
由 Jon Leighton 提交于
test_mysql_integer_not_null_defaults in test/cases/defaults_test.rb was failing. This test relies on the connection being in strict mode. By default a new connection is not in strict mode, but Active Record automatically places it in strict mode. ActiveSchemaTest overwrites the connection's #execute method in order to prevent SQL statements from actually being executed. One of the operations which is performed in ActiveSchema test is a #recreate_database. Since 2088bf27, recreate_database on mysql or mysql2 will trigger a reconnect. Due to the implementation of the hacking of #execute in ActiveSchemaTest, this reconnect would take place, but the connection would *not* be placed in strict mode because #execute had been overridden to prevent SQL queries hitting the database. Therefore, after ActiveSchemaTest, the connection would no longer be in strict mode, causing test_mysql_integer_not_null_defaults to fail. I don't think that the way that ActiveSchemaTest is implemented is particularly nice or clean, but I have taken steps to make its hacks more isolated - it now create a separate connection object which is thrown away after the test, and the hacks are applied on the singleton class of this object.
-
- 28 3月, 2013 1 次提交
-
-
由 Ken Mazaika 提交于
-
- 26 3月, 2013 2 次提交
-
-
由 Dan McClain 提交于
-
由 Dan McClain 提交于
Adds support for algorithm option in MySQL indexes Moves USING and algorithm options upstream The syntax is still specific to the Adapter, so the actual executed string happens in the corresponding adapter
-
- 24 3月, 2013 1 次提交
-
-
由 doabit 提交于
-
- 20 3月, 2013 1 次提交
-
-
由 Anupam Choudhury 提交于
-
- 02 1月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 29 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
-
- 02 8月, 2010 1 次提交
-
-
由 Brian Lopez 提交于
-
- 19 7月, 2010 1 次提交
-
-
由 Łukasz Strzałkowski 提交于
-
- 26 6月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 09 6月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 19 5月, 2010 1 次提交
-
-
由 Étienne Barrié 提交于
[#3452 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 09 5月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
This reverts commit 6626833d.
-
- 08 5月, 2010 2 次提交
-
-
由 José Valim 提交于
This commit breaks dumping a few tables, as the sessions table. To reproduce, just create a new application and: rake db:sessions:create rake db:migrate rake db:test:prepare And then look at the db/schema.rb file (ht: Sam Ruby). This reverts commit 5b95730e.
-
由 Emili Parreno 提交于
Example: add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15)) Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 04 10月, 2008 1 次提交
-
-
由 Luca Guidi 提交于
Make sure recreate MySQL test database with the proper encoding and collation [#1165 state:resolved] Signed-off-by: NMichael Koziarski <michael@koziarski.com> [#1165 state:committed]
-
- 22 5月, 2008 1 次提交
-
-
由 Frederick Cheung 提交于
Signed-off-by: NMichael Koziarski <michael@koziarski.com> [#233 state:resolved ]
-
- 13 3月, 2008 1 次提交
-
-
由 David Heinemeier Hansson 提交于
Added add/remove_timestamps to the schema statements for adding the created_at/updated_at columns on existing tables (closes #11129) [jramirez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 22 1月, 2008 1 次提交
-
-
git://git.geeksomnia.com/rails由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 18 1月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 05 1月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
* TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 22 12月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 21 10月, 2007 1 次提交
-
-
由 Rick Olson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 16 10月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 26 5月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
MySQL: create_database takes :charset and :collation options. Charset defaults to utf8. References #8448. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-