当我尝试运行迁移时,我得到以下内容:
NoMethodError: undefined method `column' for #<Foreigner::ConnectionAdapters::ForeignKeyDefinition:0x007fa020938740>
以下是迁移代码:
class CreateAdvertisement < ActiveRecord::Migration def change create_table :advertisement do |t| t.integer :issue_id,null: false t.string :client_name,null: false t.decimal :size,null: false t.decimal :price,null: false t.decimal :commission_amount,null: false t.string :first_payment,null: false t.string :second_payment,null: false t.timestamps null: false t.foreign_key :issue end end end
我有外国人1.6.1安装,Rails 4.2.0.有任何想法吗?