Created
July 14, 2011 15:32
-
-
Save johnmaxwell/1082685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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