1. 14 11月, 2014 1 次提交
  2. 01 11月, 2014 2 次提交
  3. 02 9月, 2014 1 次提交
  4. 29 8月, 2014 3 次提交
  5. 20 8月, 2014 1 次提交
  6. 14 8月, 2014 1 次提交
    • J
      Correctly determine if migration is needed. · 838e1832
      Jeremy McNevin 提交于
      This method would assume that if last migration in the migrations
      directory matched the current schema version, that the database was up
      to date, but this does not account for new migrations with older
      timestamps that may be pending.
      838e1832
  7. 13 8月, 2014 1 次提交
    • S
      Change the default `null` value for timestamps · ea3ba345
      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.
      ea3ba345
  8. 22 7月, 2014 2 次提交
    • Y
      build fix, remove not null constraint. · 4c81c8ce
      Yves Senn 提交于
      The fixtures are still in play, adding a new column without a default and `null: true`
      is not possible. This reverts back to leaking global state, as our `schema.rb` adds
      the `null: false` constraint on this field.
      
      A future solution would be to make the `migration_test.rb` run independent of fixture tables.
      This way we can simply drop the state after test execution, without worrying about side effects.
      
      /cc @zuhao
      4c81c8ce
    • Z
      8e30a636
  9. 16 7月, 2014 1 次提交
  10. 18 6月, 2014 1 次提交
    • S
      Don't type cast the default on the column · 4d3e88fc
      Sean Griffin 提交于
      If we want to have type decorators mess with the attribute, but not the
      column, we need to stop type casting on the column. Where possible, we
      changed the tests to test the value of `column_defaults`, which is
      public API. `Column#default` is not.
      4d3e88fc
  11. 07 6月, 2014 1 次提交
  12. 05 6月, 2014 1 次提交
  13. 28 5月, 2014 1 次提交
  14. 27 5月, 2014 1 次提交
  15. 15 3月, 2014 1 次提交
  16. 16 1月, 2014 2 次提交
  17. 06 1月, 2014 1 次提交
  18. 14 12月, 2013 1 次提交
  19. 12 12月, 2013 1 次提交
  20. 16 11月, 2013 1 次提交
  21. 09 11月, 2013 1 次提交
  22. 08 11月, 2013 1 次提交
  23. 01 11月, 2013 1 次提交
  24. 27 10月, 2013 1 次提交
    • J
      added schema_migrations_table_name to ActiveRecord::Base in order that the... · 26638f0a
      Jerad Phelps 提交于
      added schema_migrations_table_name to ActiveRecord::Base in order that the name of the schema migrations table can be configured.
      
      consolidated test_schema_migrations_table_name tests
      
      Added changelog entry
      
      edited changelog
      
      removed commented lines
      
      removed reader
      
      ensure the schema migrations table is reset at end of test
      
      added entry to configuration guide
      
      guides typo and changelog order
      26638f0a
  25. 25 8月, 2013 1 次提交
  26. 23 8月, 2013 1 次提交
    • W
      Making proper_table_name take in options. · 8c5d62f7
      wangjohn 提交于
      The options will specify the prefix and the suffix. Also, I'm moving the
      method to be an instance method on the +Migration+ instance. This makes more
      sense than being a class method on the +Migrator+ class because the only
      place that uses it is on a +Migration+ instance (in a method_missing
      hook). The logic for the Migrator shouldn't be doing any work to
      calculate the table name, it should be the Migration itself.
      
      Also made some small indentation fixes.
      8c5d62f7
  27. 29 7月, 2013 1 次提交
  28. 28 7月, 2013 1 次提交
  29. 16 7月, 2013 1 次提交
  30. 05 6月, 2013 1 次提交
  31. 19 4月, 2013 1 次提交
  32. 18 4月, 2013 1 次提交
  33. 09 3月, 2013 1 次提交
  34. 08 3月, 2013 1 次提交
    • E
      If an index can't be found by column, use the index name. · b6226c3c
      Ezekiel Smithburg 提交于
      schema_statements uses the column name by default to construct the index name, and then raises an exception if it doesn't exist, even if the name option is specified, which causes #8858.  this commit makes index_name_for_remove fall back to constructing the index name to remove based on the name option.
      b6226c3c
  35. 05 3月, 2013 1 次提交
    • Y
      transactions can be turned off per Migration. · b3373908
      Yves Senn 提交于
      Closes #9483.
      
      There are SQL Queries that can't run inside a transaction. Since
      the Migrator used to wrap all Migrations inside a transaction there
      was no way to run these queries within a migration.
      
      This patch adds `self.disable_ddl_transaction!` to the migration to
      turn transactions off when necessary.
      b3373908