- 28 6月, 2014 6 次提交
-
-
由 Rafael Mendonça França 提交于
Add AR::Base#valid! method
-
由 Rafael Mendonça França 提交于
databases.rake refactoring
-
由 Rafael Mendonça França 提交于
Stop using instance exec for type decorators
-
We are moving this behavior out to an object that we would like to keep separated from `ActiveRecord::Base`, which means not passing the class object to it. As such, we need to stop using `instance_exec`, and instead close over the subclass on global type decorators that are applied in `Base`.
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
-
- 27 6月, 2014 34 次提交
-
-
由 Viktar Basharymau 提交于
-
由 Robin Dupret 提交于
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
It allows the code to be more declarative and elegant.
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
`ActiveRecord::FixtureSet.create_fixtures` can accept an array of fixture_files.
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
-
由 Viktar Basharymau 提交于
Before this commit, if `ENV['FIXTURES_PATH']` was set, then `Rails.root` was used, otherwise the app used `ActiveRecord::Tasks::DatabaseTasks.root`. Now it is consistent.
-
由 Viktar Basharymau 提交于
-
由 Yves Senn 提交于
-
由 Robin Dupret 提交于
Wrap list items to 80 chars and avoid relying on NOTE inside an item since they are meant to be parsed in paragraphs, not lists. [ci skip]
-
由 Rafael Mendonça França 提交于
Make the apply_inflections method case-sensitive
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Basic support for adding and removing foreign keys
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
The name of the foreign key is not relevant from a users perspective. Using random names resolves the urge to rename the foreign key when the respective table or column is renamed.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
This allows to create and remove foreign keys without specifying a column.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
respect `table_name_prefix` and `table_name_suffix`.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-