Methods
- S
- T
Attributes
| [R] | conn | |
| [R] | connection | |
| [R] | table_name |
Instance Public methods
setup()
Link
# File activerecord/test/cases/migration/column_positioning_test.rb, line 9 def setup super @connection = ActiveRecord::Base.connection connection.create_table :testings, :id => false do |t| t.column :first, :integer t.column :second, :integer t.column :third, :integer end end
test_add_column_with_positioning()
Link
test_add_column_with_positioning_after()
Link
test_add_column_with_positioning_first()
Link
test_change_column_with_positioning()
Link
# File activerecord/test/cases/migration/column_positioning_test.rb, line 46 def test_change_column_with_positioning conn.change_column :testings, :second, :integer, :first => true assert_equal %w(second first third), conn.columns(:testings).map {|c| c.name } conn.change_column :testings, :second, :integer, :after => :third assert_equal %w(first third second), conn.columns(:testings).map {|c| c.name } end