File: 3_we_need_reminders.rb

package info (click to toggle)
ruby-activerecord-2.3 2.3.14-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,180 kB
  • sloc: ruby: 32,874; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
10
11
12
class WeNeedReminders < ActiveRecord::Migration
  def self.up
    create_table("reminders") do |t|
      t.column :content, :text
      t.column :remind_at, :datetime
    end
  end

  def self.down
    drop_table "reminders"
  end
end