Git Product home page Git Product logo

also_migrate's People

Contributors

adrianpike avatar blakewatters avatar tongueroo avatar winton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

also_migrate's Issues

Configuration for also_migrate seems to break Rails 3.1 migrations

When trying to upgrade an application to Rails 3.1, the naming scheme of the migration files breaks. Specifically, the timestamp does not appear in the name. Instead of the expected

db/migrate/20111018130243_add_foo_to_user.rb

I get

db/migrate/_add_foo_to_user.rb

If I comment out the block of configuration code for the also_migrate gem, the migration files are properly generated. Uncommenting the same lines recreates the issue.

The code seemed to work properly under Rails 3.0.7, but the issue appears under 3.1.1.

The block of code is:

require 'also_migrate'
AlsoMigrate.configuration = [
  {:source => 'questions', :destination => 'question_archives', :add => [['moved_at', :datetime]], :indexes => :id},
  {:source => 'answers', :destination => 'answer_archives', :add => [['moved_at', :datetime]], :indexes => :id},
  {:source => 'descriptions', :destination => 'description_archives', :add => [['moved_at', :datetime]], :indexes => :id}
]

The corresponding entry in the Gemfile is:

gem 'also_migrate'

Gemfile.lock indicates that the version of also_migrate being pulled in is 0.3.5.

Not sure if there is more information I should be providing. Thanks.

Fails to install with Bundler due to Psych parse errors

When installing via Bundler, getting errors:

/Users/blake/.rvm/rubies/ruby-1.9.2-p290-railsexpress/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 3 column 9 (Psych::SyntaxError)
    from /Users/blake/.rvm/rubies/ruby-1.9.2-p290-railsexpress/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
    from /Users/blake/.rvm/rubies/ruby-1.9.2-p290-railsexpress/lib/ruby/1.9.1/psych.rb:119:in `parse'
    from /Users/blake/.rvm/rubies/ruby-1.9.2-p290-railsexpress/lib/ruby/1.9.1/psych.rb:106:in `load'

Postgres 8.4 error on rake db:migrate

For postgres 8.4 sql like this "CREATE TABLE archived_articles LIKE articles" is invalid.
This is correct one "CREATE TABLE archived_articles (LIKE articles)"

Indexes options not used.

Hi Winton,
I tried to use the indexes options to set a primary key, on a cloned table.
But nothing append, I falled back and remove the option, and the index was correctly created as the original table. Not really an issue for me, but probably for other.

bye

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.