rails/rails — pull request #8226 by RStankov (2012-11-15 17:05:13+00:00)
Title: Instance eval in migrations

Since pretty much in most of the rails we use ```instance_eval```. I think it will be good to have it in the migrations.

```ruby

create_table :user do |t|
t.string :email, :name
t.timestamps
end

# vs

create_table :user do
string :email, :name
timestamps
end

```

This pull request contains the code to do this It aslo includes the same behaviour for ```create_join_table``` and ```change_table```.

I still have to:

* Add this to the CHANGELOG
* Describe it in the rdocs
* Possible use this in the schema.rb generation
* Change the tests and internal usage of the ```do |t| ``` pattern
* Deprecation ?

But I first want to know if such feature will be accepted.