Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- desc 'Creating sqlite database for subscribtions'
- task :create_db do
- DataMapper.setup(:default, {
- :adapter => 'mysql',
- :database => "snowy",
- :username => 'root',
- :password => '',
- :host => 'localhost'
- })
- class Subscription
- include DataMapper::Resource
- property :id, Serial
- property :mail, String
- property :city, String
- property :status, String
- property :activation_code, String
- end
- Subscription.auto_migrate!
- end
Add Comment
Please, Sign In to add comment