Sha256: 5c062be31ee23ac33f726d0722ad6c83a62ea3d2b000253692423e9b19d73b02
Contents?: true
Size: 555 Bytes
Versions: 116
Compression:
Stored size: 555 Bytes
Contents
class CreateEvents < ActiveRecord::Migration def self.up create_table :events do |t| t.integer :library_id, :null => false t.integer :event_category_id, :null => false t.string :name t.text :note t.datetime :start_at t.datetime :end_at t.boolean :all_day, :default => false, :null => false t.datetime :deleted_at t.text :display_name t.timestamps end add_index :events, :library_id add_index :events, :event_category_id end def self.down drop_table :events end end
Version data entries
116 entries across 112 versions & 7 rubygems