diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-06-05 14:48:58 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-06-05 14:48:58 +0530 |
commit | 6da0072253f23fd622eacdaec597aed8dfbef55f (patch) | |
tree | fbb7527584440296e0d2367cc4b59af5f366b7bb /activerecord/lib | |
parent | 92cf133788b2bef729ffeda5ca4c87d3a011e7ba (diff) | |
download | rails-6da0072253f23fd622eacdaec597aed8dfbef55f.tar.gz rails-6da0072253f23fd622eacdaec597aed8dfbef55f.tar.bz2 rails-6da0072253f23fd622eacdaec597aed8dfbef55f.zip |
Remove deprecated method ActiveRecord::Migrator.proper_table_name
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 8fe32bcb6c..fca002873c 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -851,19 +851,6 @@ module ActiveRecord migrations(migrations_paths).last || NullMigration.new end - def proper_table_name(name, options = {}) - ActiveSupport::Deprecation.warn "ActiveRecord::Migrator.proper_table_name is deprecated and will be removed in Rails 4.2. Use the proper_table_name instance method on ActiveRecord::Migration instead" - options = { - table_name_prefix: ActiveRecord::Base.table_name_prefix, - table_name_suffix: ActiveRecord::Base.table_name_suffix - }.merge(options) - if name.respond_to? :table_name - name.table_name - else - "#{options[:table_name_prefix]}#{name}#{options[:table_name_suffix]}" - end - end - def migrations_paths @migrations_paths ||= ['db/migrate'] # just to not break things if someone uses: migration_path = some_string |