Class: Rails::Generators::Database::SQLite3

Inherits:
Rails::Generators::Database show all
Defined in:
lib/rails/generators/database.rb

Constant Summary

Constants inherited from Rails::Generators::Database

DATABASES

Instance Method Summary collapse

Methods inherited from Rails::Generators::Database

all, build, #feature, #host, #socket, #volume

Instance Method Details

#base_packageObject



254
255
256
# File 'lib/rails/generators/database.rb', line 254

def base_package
  "sqlite3"
end

#build_packageObject



258
259
260
# File 'lib/rails/generators/database.rb', line 258

def build_package
  nil
end

#feature_nameObject



262
263
264
# File 'lib/rails/generators/database.rb', line 262

def feature_name
  "ghcr.io/rails/devcontainer/features/sqlite3"
end

#gemObject



250
251
252
# File 'lib/rails/generators/database.rb', line 250

def gem
  ["sqlite3", [">= 2.1"]]
end

#nameObject



234
235
236
# File 'lib/rails/generators/database.rb', line 234

def name
  "sqlite3"
end

#portObject



246
247
248
# File 'lib/rails/generators/database.rb', line 246

def port
  nil
end

#serviceObject



242
243
244
# File 'lib/rails/generators/database.rb', line 242

def service
  nil
end

#templateObject



238
239
240
# File 'lib/rails/generators/database.rb', line 238

def template
  "config/databases/sqlite3.yml"
end