fastruby / fastruby/rails_upgrader
Update migration class name with Rails version
Open
feature request
- Dominant language
- Ruby
- Stars
- 41
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
`rails g model User name:string`
will generate migration as shown below.
```ruby
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.timestamps null: false
end
end
end
```
In Rails 5 the same command will generate following migration.
```ruby
class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.string :name
t.timestamps
end
end
end
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.