Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateEvents < ActiveRecord::Migration
- def self.up
- create_table :events do |t|
- t.string :title
- t.string :tags
- t.timestamps
- end
- end
- def self.down
- drop_table :events
- end
- end
- class Event < ActiveRecord::Base
- acts_as_taggable
- acts_as_taggable_on :tags
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement