Skip to content

Commit

Permalink
rollup past migrations into the current schema
Browse files Browse the repository at this point in the history
Fixes the issue where past migrations fail because ActiveRecord models
have changed their interfaces over the years.

Moved the current schema table and index declarations into a single
migration with a schema version number equal to the last actual migration.

Includes "new" schema.rb with Rails-isms from v5 that declares DB-vendor
specific options in the schema. This schema will fail when applied to
non-MySQL databases.

Signed-off-by: Robb Kidd <robb@thekidds.org>
  • Loading branch information
robbkidd committed May 29, 2017
1 parent c786ff3 commit afeec29
Show file tree
Hide file tree
Showing 131 changed files with 1,307 additions and 3,163 deletions.
28 changes: 0 additions & 28 deletions db/migrate/001_create_traits.rb

This file was deleted.

25 changes: 0 additions & 25 deletions db/migrate/002_create_yields.rb

This file was deleted.

22 changes: 0 additions & 22 deletions db/migrate/003_create_priors.rb

This file was deleted.

13 changes: 0 additions & 13 deletions db/migrate/006_create_pfts.rb

This file was deleted.

16 changes: 0 additions & 16 deletions db/migrate/007_create_cultivars.rb

This file was deleted.

18 changes: 0 additions & 18 deletions db/migrate/008_create_species.rb

This file was deleted.

15 changes: 0 additions & 15 deletions db/migrate/009_create_variables.rb

This file was deleted.

20 changes: 0 additions & 20 deletions db/migrate/010_create_citations.rb

This file was deleted.

29 changes: 0 additions & 29 deletions db/migrate/011_create_sites.rb

This file was deleted.

14 changes: 0 additions & 14 deletions db/migrate/012_create_treatments.rb

This file was deleted.

19 changes: 0 additions & 19 deletions db/migrate/013_create_managements.rb

This file was deleted.

129 changes: 0 additions & 129 deletions db/migrate/014_create_plants.rb

This file was deleted.

18 changes: 0 additions & 18 deletions db/migrate/015_create_citations_sites.rb

This file was deleted.

18 changes: 0 additions & 18 deletions db/migrate/016_create_managements_treatments.rb

This file was deleted.

0 comments on commit afeec29

Please sign in to comment.