Sha256: 4efcac098fe8689fc8e2236f38a9e710be65b30dec906d19bdb7a32b2ba73c42

Contents?: true

Size: 1.1 KB

Versions: 25

Compression:

Stored size: 1.1 KB

Contents

class CreateReaders < ActiveRecord::Migration
  def self.up
    create_table :readers, :force => true do |t|
      t.column :site_id, :integer
      t.column :name, :string, :limit => 100
      t.column :email, :string
      t.column :login, :string, :limit => 40, :default => "", :null => false
      t.column :password, :string, :limit => 40
      t.column :description, :text
      t.column :notes, :text
      t.column :trusted, :boolean, :default => true
      t.column :receive_email, :boolean, :default => false
      t.column :receive_essential_email, :boolean, :default => true
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :created_by_id, :integer
      t.column :updated_by_id, :integer
      t.column :salt, :string
      t.column :session_token, :string
      t.column :activation_code, :string
      t.column :provisional_password, :string
      t.column :activated_at, :datetime
      # t.column :lock_version, :integer, :default => 0
    end
    add_index :readers, ["session_token"], :name => "session_token"
  end

  def self.down
    drop_table :readers
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.0.rc4 db/migrate/001_create_readers.rb
radiant-reader-extension-3.0.0.rc3 db/migrate/001_create_readers.rb
radiant-reader-extension-2.0.0.rc4 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.13 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.12 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.11 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.10 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.9 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.8 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.7 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.6 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.4 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.3 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.1 db/migrate/001_create_readers.rb
radiant-reader-extension-1.3.0 db/migrate/001_create_readers.rb
radiant-reader-extension-1.2.4 db/migrate/001_create_readers.rb
radiant-reader-extension-1.2.3 db/migrate/001_create_readers.rb
radiant-reader-extension-1.2.2 db/migrate/001_create_readers.rb
radiant-reader-extension-1.2.1 db/migrate/001_create_readers.rb
radiant-reader-extension-1.2.0 db/migrate/001_create_readers.rb