db:migrate

34 views
Skip to first unread message

Darko Vulin

unread,
Nov 21, 2014, 11:12:23 AM11/21/14
to rubyonra...@googlegroups.com
I have done bundle install and bundle update. Here is my [timestamp]_create_users.rb
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.strig :name
      t.string :email

      t.timestamps null:false
    end
  end
end

piga@PIGA-PC ~/Workspace/sample_app (modeling-users) 
$ bundle exec rake db:migrate
== 20141121153548 CreateUsers: migrating ======================================
-- create_table(:users)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `strig' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x3740c10>C:/Users/piga/Worksp
ace/sample_app/db/migrate/20141121153548_create_users.rb:4:in `block in change'
C:/Users/piga/Workspace/sample_app/db/migrate/20141121153548_create_users.rb:3:in `change'
c:in `migrate'
Tasks: TOP => db:migrate
Reply all
Reply to author
Forward
Message has been deleted
0 new messages