Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moves column dump specific code to a module included in AbstractAdapter | Dan McClain | 2012-09-14 | 1 | -29/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having column related schema dumper code in the AbstractAdapter. The code remains the same, but by placing it in the AbstractAdapter, we can then overwrite it with Adapter specific methods that will help with Adapter specific data types. The goal of moving this code here is to create a new migration key for PostgreSQL's array type. Since any datatype can be an array, the goal is to have ':array => true' as a migration option, turning the datatype into an array. I've implemented this in postgres_ext, the syntax is shown here: https://github.com/dockyard/postgres_ext#arrays Adds array migration support Adds array_test.rb outlining the test cases for array data type Adds pg_array_parser to Gemfile for testing Adds pg_array_parser to postgresql_adapter (unused in this commit) Adds schema dump support for arrays Adds postgres array type casting support Updates changelog, adds note for inet and cidr support, which I forgot to add before Removing debugger, Adds pg_array_parser to JRuby platform Removes pg_array_parser requirement, creates ArrayParser module used by PostgreSQLAdapter | ||||
* | Dump schema using new style hash | Konstantin Shabanov | 2012-09-08 | 1 | -10/+10 |
| | |||||
* | Merge pull request #4396 from kennyj/fix_4259 | Rafael Mendonça França | 2012-06-20 | 1 | -4/+8 |
|\ | | | | | | | Fix GH #4259. When we execute schema dumper, we must remove table_name_prefix and table_name_suffix. | ||||
| * | Fix GH #4259. We must remove table_name_prefix and table_name_suffix, when ↵ | kennyj | 2012-01-10 | 1 | -4/+8 |
| | | | | | | | | we execute schema dumper. | ||||
* | | reduce number of Strings | Akira Matsuda | 2012-06-06 | 1 | -1/+1 |
| | | |||||
* | | Corrected grammatical errors in schema_dumper and scoping/default | dcurtis | 2012-04-10 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #2621 from icco/master | Aaron Patterson | 2012-03-26 | 1 | -1/+1 |
|\ \ | | | | | | | Issue with schema dump | ||||
| * | | Not checking for nil is apparently a lot faster. | Nat Welch | 2011-09-21 | 1 | -1/+1 |
| | | | |||||
| * | | From @dasch's recommendation. | Nat Welch | 2011-08-22 | 1 | -1/+1 |
| | | | |||||
| * | | Fixes bug with schema dumper when using with Padrino. | Nat Welch | 2011-08-21 | 1 | -1/+1 |
| | | | |||||
* | | | Made schema dumper recognize partial indices' where statements | Marcelo Silveira | 2012-02-09 | 1 | -0/+2 |
| |/ |/| | |||||
* | | just use the list of formatting keys we care about | Aaron Patterson | 2012-01-04 | 1 | -1/+1 |
| | | |||||
* | | fix some formatting | Aaron Patterson | 2012-01-04 | 1 | -2/+6 |
| | | |||||
* | | use regular expression or statement. loltargetrichenvironment | Aaron Patterson | 2012-01-04 | 1 | -1/+1 |
| | | |||||
* | | Use `show index from`. We could fix `pk_and_sequence_for` method's ↵ | kennyj | 2011-11-19 | 1 | -3/+1 |
| | | | | | | | | performance problem (GH #3678) | ||||
* | | Only used detailed schema introspection when doing a schema dump. | Christos Zisopoulos | 2011-11-18 | 1 | -1/+3 |
| | | | | | | Fixes #3678 | ||||
* | | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -0/+3 |
|/ | |||||
* | dump IO encoding value along with schema.rb so the file can be reloaded. ↵ | Aaron Patterson | 2011-07-29 | 1 | -0/+4 |
| | | | | fixes #1592 | ||||
* | Corrected some typos and American vs. Queen's English issues | Lee Reilly | 2011-05-29 | 1 | -1/+1 |
| | |||||
* | Remove extra white spaces on ActiveRecord docs. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | |||||
* | kill unused variable warnings | Aaron Patterson | 2011-01-11 | 1 | -1/+1 |
| | |||||
* | rolling out migrated_at until I can fix the build | Aaron Patterson | 2010-12-01 | 1 | -12/+4 |
| | |||||
* | clear schema_migrations in Schema.define | Josh Susser | 2010-12-01 | 1 | -5/+3 |
| | |||||
* | name in schema_migrations, migrations in schema dump | Josh Susser | 2010-12-01 | 1 | -0/+10 |
| | |||||
* | Revert "removing unused variable" | Aaron Patterson | 2010-10-26 | 1 | -1/+1 |
| | | | | This reverts commit 3e4ede81d6b1ff3ea89eca33715a5a0d2f524dcf. | ||||
* | removing unused variable | Aaron Patterson | 2010-10-23 | 1 | -1/+1 |
| | |||||
* | no need to check for nil | Neeraj Singh | 2010-10-17 | 1 | -3/+3 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | lengths will be nil or an array | Aaron Patterson | 2010-10-03 | 1 | -2/+2 |
| | |||||
* | remove a few function calls | Aaron Patterson | 2010-10-03 | 1 | -3/+5 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -1/+1 |
| | | | | This will hopefully make Active Record run a bit more faster. | ||||
* | fixing whitespace errors | Aaron Patterson | 2010-08-05 | 1 | -9/+9 |
| | |||||
* | Adds title where needed. | Rizwan Reza | 2010-06-16 | 1 | -6/+9 |
| | |||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -6/+6 |
| | |||||
* | Make sure schema dumper doesnt throw up when there are no index lengths | Pratik Naik | 2010-05-09 | 1 | -1/+3 |
| | |||||
* | Revert "Revert "Add index length support for MySQL [#1852 state:open]"" | Pratik Naik | 2010-05-09 | 1 | -0/+1 |
| | | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39. | ||||
* | Revert "Add index length support for MySQL [#1852 state:open]" | José Valim | 2010-05-08 | 1 | -1/+0 |
| | | | | | | | | | | | | | 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 5b95730edc33ee97f53da26a3868eb983305a771. | ||||
* | Add index length support for MySQL [#1852 state:resolved] | Emili Parreno | 2010-05-08 | 1 | -0/+1 |
| | | | | | | | | | | | | 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: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Don't define a default primary key in the schema dumper. | Tristan Dunn | 2009-08-08 | 1 | -1/+0 |
| | | | | | | [#1908 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add support for dumping non-standard primary keys when using the SQLite3 ↵ | Hongli Lai (Phusion) | 2009-07-07 | 1 | -1/+5 |
| | | | | | | adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | ||||
* | Schema dumper now records scale 0 decimal columns as decimal not integer. | Giles Alexander | 2009-06-01 | 1 | -2/+9 |
| | | | | | | | | | | The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2741 state:committed] | ||||
* | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -2/+2 |
| | |||||
* | Merge with docrails | Pratik Naik | 2008-12-07 | 1 | -0/+2 |
| | |||||
* | Ensure indices don't flip order in schema.rb [#1266 state:committed] | Jordi Bunster | 2008-10-30 | 1 | -6/+12 |
| | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Deal with MySQL's quirky handling of defaults and blob/text columns | Frederick Cheung | 2008-09-14 | 1 | -1/+1 |
| | | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add support for interleaving migrations by storing which migrations have run ↵ | Rick Olson | 2008-04-09 | 1 | -3/+3 |
| | | | | | | in the new schema_migrations table. Closes #11493 [jordi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Set the record straight on the purpose and utility of db/schema.rb | David Heinemeier Hansson | 2007-11-09 | 1 | -2/+9 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | minor speedups + forward-compat syntax | Jeremy Kemper | 2007-09-13 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Sexy dumper now has its groove on (closes #8281) [Chris Wanstrath] | David Heinemeier Hansson | 2007-05-11 | 1 | -9/+24 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |