Skip to content

Instantly share code, notes, and snippets.

@johnmaxwell
Created July 14, 2011 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmaxwell/1082685 to your computer and use it in GitHub Desktop.
Save johnmaxwell/1082685 to your computer and use it in GitHub Desktop.
vagrant@vagrantup:/publisher$ bundle exec rails g model Platform::Subscription callback_url:string name:string external_id:string token:string secret:string verify_token:string service_id:string state:string type:string
invoke active_record
create db/migrate/20110714153150_create_platform_subscriptions.rb
create app/models/platform/subscription.rb
create app/models/platform.rb
invoke rspec
create spec/models/platform/subscription_spec.rb
error factory_girl [not found]
vagrant@vagrantup:/publisher$ cat db/migrate/20110714153150_create_platform_subscriptions.rbclass CreatePlatformSubscriptions < ActiveRecord::Migration
def self.up
create_table :platform_subscriptions do |t|
t.string :callback_url
t.string :name
t.string :external_id
t.string :token
t.string :secret
t.string :verify_token
t.string :service_id
t.string :state
t.string :type
t.timestamps
end
end
def self.down
drop_table :platform_subscriptions
end
end
vagrant@vagrantup:/publisher$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment