Sha256: f42d374a281a4ef70d2fce878cfecb2e3c07dca11dacb743f142cc37958d711c

Contents?: true

Size: 372 Bytes

Versions: 17

Compression:

Stored size: 372 Bytes

Contents

# ensure activerecord tasks are loaded first
require "active_record/railtie"

module StrongMigrations
  class Railtie < Rails::Railtie
    rake_tasks do
      load "tasks/strong_migrations.rake"

      ["db:drop", "db:reset", "db:schema:load", "db:structure:load"].each do |t|
        Rake::Task[t].enhance ["strong_migrations:safety_assured"]
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
strong_migrations-0.6.8 lib/strong_migrations/railtie.rb
strong_migrations-0.6.7 lib/strong_migrations/railtie.rb
strong_migrations-0.6.6 lib/strong_migrations/railtie.rb
strong_migrations-0.6.5 lib/strong_migrations/railtie.rb
strong_migrations-0.6.4 lib/strong_migrations/railtie.rb
strong_migrations-0.6.3 lib/strong_migrations/railtie.rb
strong_migrations-0.6.2 lib/strong_migrations/railtie.rb
strong_migrations-0.6.1 lib/strong_migrations/railtie.rb
strong_migrations-0.6.0 lib/strong_migrations/railtie.rb
strong_migrations-0.5.1 lib/strong_migrations/railtie.rb
strong_migrations-0.5.0 lib/strong_migrations/railtie.rb
strong_migrations-0.4.2 lib/strong_migrations/railtie.rb
strong_migrations-0.4.1 lib/strong_migrations/railtie.rb
strong_migrations-0.4.0 lib/strong_migrations/railtie.rb
strong_migrations-0.3.1 lib/strong_migrations/railtie.rb
strong_migrations-0.3.0 lib/strong_migrations/railtie.rb
strong_migrations-0.2.3 lib/strong_migrations/railtie.rb