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

Version Path
enju_oai-0.2.0.beta.2 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.0.beta.5 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.2.0.beta.2 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.0.beta.4 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.0.beta.2 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.2.0.beta.2 db/migrate/113_create_events.rb
enju_biblio-0.2.0.beta.2 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.0.beta.3 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.0.beta.2 spec/dummy/db/migrate/113_create_events.rb
enju_oai-0.2.0.beta.1 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.0.beta.1 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.2.0.beta.1 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.2.0.beta.1 db/migrate/113_create_events.rb
enju_biblio-0.2.0.beta.1 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.0.beta.1 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.2 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.3 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.1.2 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.19 db/migrate/113_create_events.rb
enju_oai-0.1.1 spec/dummy/db/migrate/113_create_events.rb